package com.meilingcloud.biobank.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * 综合查询数据映射类
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GeneralQuery extends SampleBackup {

    private static final long serialVersionUID = 1L;

    // 查询范围
    private List<Long> sampBackupIds;
    // 查询条件
    private List<Condition> conditions;
    // 采样时间
    private Date samplingStart;
    // 采样时间
    private Date samplingEnd;

    public static class Condition {
        private String type;
        private String formKey;
        private String odd;
        private String way;
        private String value;

        public String getFormKey() {
            return formKey;
        }

        public void setFormKey(String formKey) {
            this.formKey = formKey;
        }

        public String getOdd() {
            return odd;
        }

        public void setOdd(String odd) {
            this.odd = odd;
        }

        public String getWay() {
            return way;
        }

        public void setWay(String way) {
            this.way = way;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }

}
